using Microsoft.AspNetCore.Identity;

namespace Services.Identity.Domain.Entities;
public class Role : IdentityRole<long>
{
    private Role() { }
    public List<UserPermission> UserPermissions { get; set; } = new List<UserPermission>();
    public static Role Create(string roleName)
    {
        return new Role { Name = roleName };
    }
}